package com.xiguaji.tiktok.task;

import com.xiguaji.boot.retry.RetryableException;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Component;

@Component
public class RetryableService {

    @Retryable(RetryableException.class)
    public void aaa() {
        System.out.println("111");
        throw new RetryableException("xxx");
    }

}
